import request from '@/utils/request'

// 账单收支分析
export function getBill() {
  return request({
    url: '/daily/branchSettlement/billDataShow',
    method: 'get'
  })
}

// 充值或提现审核
export function getReview(data) {
  return request({
    url: '/daily/branchSettlement/rechargeOrWithdrawalReview',
    method: 'post',
    data
  })
}

// 预警配置保存
export function saveConfig(data) {
  return request({
    url: '/daily/branchSettlement/saveWarningConfiguration',
    method: 'post',
    data
  })
}

// 网点总部结算
export function getHeadquartersSettlement() {
  return request({
    url: '/daily/branchSettlement/settlementOfBranchHeadquarters',
    method: 'get'
  })
}

// 预警配置查询
export function getConfig(id) {
  return request({
    url: `/daily/branchSettlement/warningConfiguration/${id}`,
    method: 'get'
  })
}